// 装饰器可以叠加
const MusicDecorator: ClassDecorator = (target: Function) => {
  target.prototype.playMusic = (): void => {
    console.log('播放音乐');
  }
}

const TextDecorator: ClassDecorator = (target: Function) => {
  target.prototype.playText = (): void => {
    console.log('播放文本');
  }
}

@MusicDecorator
@TextDecorator
class Phone {

}
const phone = new Phone();
(phone as any).playMusic();
(phone as any).playText()